package org.computate.model.dao;

import java.util.List;

import org.computate.model.item.Model;

import com.googlecode.objectify.Objectify;
import com.googlecode.objectify.Query;

public interface ModelDao extends ComputateDao<Model> {
	public Model create();
	public Model put(Model item);
	public Model save(Object itemObject);
	public Model create(String name);
	public Model create(String name, String parentField, Long parentId, int getLevels);
	public Model get(Long id, int getLevels);
	public Model get(String name, int getLevels);
	public Model delete(Long id);
	public Model delete(Model item);
	public List<Model> list(int listLevels);
	public List<Model> list(Query<Model> query, int listLevels);
	public Objectify ofy();
}
